//
//  AccountProtectionTableViewCell_2.m
//  fxxiaoke
//
//  Created by 鞠超 on 16/9/12.
//  Copyright © 2016年 jc. All rights reserved.
//

#import "AccountProtectionTableViewCell_2.h"

@implementation AccountProtectionTableViewCell_2

- (instancetype )initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if(self)
    {
        [self p_setupView];
    }
    
    return self;
}

- (void )p_setupView
{
    self.lbl_time = [[UILabel alloc] init];
    self.lbl_time.font = [UIFont systemFontOfSize:15.0f];
    self.lbl_time.textColor = [UIColor blackColor];
    [self.contentView addSubview:self.lbl_time];
    
    self.lbl_telType = [[UILabel alloc] init];
    self.lbl_telType.font = [UIFont systemFontOfSize:15.0f];
    self.lbl_telType.textColor = [UIColor blackColor];
    [self.contentView addSubview:self.lbl_telType];
    
    self.lbl_success = [[UILabel alloc] init];
    self.lbl_success.font = [UIFont systemFontOfSize:15.0f];
    self.lbl_success.textColor = [UIColor blackColor];
    [self.contentView addSubview:self.lbl_success];
    
    self.view_Line = [[UIView alloc] init];
    self.view_Line.backgroundColor = [UIColor groupTableViewBackgroundColor];
    [self.contentView addSubview:self.view_Line];
}

- (void )layoutSubviews
{
    [super layoutSubviews];
    
    self.lbl_time.frame = CGRectMake(15, 15, SCREEN_WIDTH - 30, 15);
    
    self.lbl_telType.frame = CGRectMake(15, CGRectGetMaxY(self.lbl_time.frame) + 7.5, SCREEN_WIDTH - 30, 15);
    
    self.lbl_success.frame = CGRectMake(15, CGRectGetMaxY(self.lbl_telType.frame) + 7.5, SCREEN_WIDTH - 30, 15);
    
    self.view_Line.frame = CGRectMake(15, 89, SCREEN_WIDTH - 15, 1);
}


@end
